 <%@page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 <div class="col-xs-2" >
         <ul class="nav nav-tabs nav-stacked" id="myNav">
             <li>
             	<a data-toggle="collapse" data-target="#users">信息设置</a>
             	<div id="users" class="collapse">
             		<ul class="list-group list-unstyled">
					    <li class="text-success"><a href="#"><blockquote><small>用户信息</small></blockquote></a></li>
					    <li class="text-success"><a href="#"><blockquote><small>忘记密码</small></blockquote></a></li>
					    <li class="text-success"><a href="#"><blockquote><small>绑定邮箱</small></blockquote></a></li>
					    <li class="text-success"><a href="#"><blockquote><small>绑定手机</small></blockquote></a></li>
					</ul>
             	</div>
             </li>
             <li><a data-toggle="collapse" data-target="#tools">我的工具</a>
             	<div id="tools" class="collapse">
             	</div>
             </li>
         </ul>
      </div>

  <script type="text/javascript">
  	/*
  	*工具菜单
  	*/
  	var url = "/users/toolsList.html";
  	var data = {};
  	var params = {url:url,data:data,dataType:"json",success:function(data){
  		console.log("tools ajax");
  		console.log(data);
  		if(data.code == 0){
  			var toolsMenueText = "";
  			var models = data.models;
  			for(var i = 0; i < models.length; i++){
  				var model = models[i];
  				//<li class="text-success"><a href="#">绑定手机</a></li>
  				toolsMenueText += '<li class="text-success"><a href="'+model.url+'"><blockquote><small>'+model.name+'</small></blockquote></a></li>'
  			}
  			$("#tools").html(toolsMenueText);
  		}else{
  			
  		}
  	},error:function(){
  		alert("服务器正在维护！");
  	}};
  	$.ajax(params);
  </script>